import React, { Component } from 'react'
import {HashRouter as Router,Route,Switch} from "react-router-dom"

import Home from "./pages/Home"
import User from "./pages/User"

export default class App extends Component<any,any> {
  render() {
    return (
      <div>
          <div className='nav'>
              <div className='li'>
                  <a href='#/home'>home</a>
              </div>
              <div className='li'>
                  <a href='#/user'>User</a>
              </div>
          </div>
          <div className='show'>
              <Router>
                  <Switch>
                       <Route path='/' exact component={Home}></Route> 
                       <Route path='/home' component={Home}></Route> 
                       <Route path='/user' component={User}></Route> 
                  </Switch>
              </Router>
          </div>
      </div>
    )
  }
}
